﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;

namespace Vehicle.BLL
{
    /// <summary>
    /// Copyright (C) M-Tear团队
    /// 文 件 名：Task.cs
    /// 版    本：v1.00.0000
    /// 创建标识：2009-08-31    Created by 杨光远 V1.00.0000
    /// 功能说明：Task表逻辑层类（继承于逻辑层基类)
    /// 注意事项：无
    /// 
    /// 更新记录：
    /// 
    /// </summary>
    public class Task : BLL.Base_BLL,ITask
    {
        private static readonly Vehicle.Interface.ITask d_Task = Vehicle.Interface.Factory.CreatedTask();
        /// <summary>
        /// 绑定页面Repeater控件
        /// </summary>
        /// <param name="Rept">Repeater控件对象</param>
        /// <param name="m_ComponentsInfo">通用实体对象</param>
        public void RepeaterBind(Repeater Rept, Model.ComponentsInfo m_ComponentsInfo)
        {
            d_Task.RepeaterBind(Rept, m_ComponentsInfo);
        }
        /// <summary>
        /// 添加任务信息
        /// </summary>
        /// <param name="m_TaskInfo">实体对象</param>
        public void Add(Model.TaskInfo m_TaskInfo)
        {
            d_Task.Add(m_TaskInfo);
        }

        /// <summary>
        /// 修改任务信息
        /// </summary>
        /// <param name="m_TaskInfo">实体对象</param>
        public void Update(Model.TaskInfo m_TaskInfo)
        {
            d_Task.Update(m_TaskInfo);
        }
    }
}
